package cn.hxsteel.core.exception;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;

/**
 * web异常解析处理
 */
public class WebHandlerExceptionResolver extends SimpleMappingExceptionResolver
{
    protected ModelAndView doResolveException( javax.servlet.http.HttpServletRequest httpServletRequest,
	    javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.Object o, java.lang.Exception e )
    {
	httpServletRequest.setAttribute( "exception", e );
	e.printStackTrace();
	return super.doResolveException( httpServletRequest, httpServletResponse, o, e );
    }
}